#!/usr/bin/env python
# -*- coding: utf-8 -*-

from random import randint

sourcefp = open('name.txt')
nameall = sourcefp.readlines()
sourcefp.close()

xins = list()
mings = list()
for name in nameall:
    xin, ming = name.split(' ')
    xins.append(xin.strip())
    mings.append(ming.strip())

xins_len = len(xins)
mings_len = len(mings)

destfp = open('new_name.txt', 'a+')
for i in range(10000):
    full_name = xins[randint(0, xins_len-1)] + mings[randint(0, mings_len-1)]
    destfp.write(full_name+'\n')
destfp.close()

